

#ifndef _SHELL_RESITEMINFO_MESSAGE_H_
#define _SHELL_RESITEMINFO_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include "ItemInfo.h"
using namespace std;

class ResItemInfoMessage : public Message
{
	public:
	ResItemInfoMessage();
	~ResItemInfoMessage();
	void reset();
	ResItemInfoMessage* clone();
	static const int _ID;
	//变化类型1.添加。2删除。3更新
	int8 type;
	//单个物品变化信息
	ItemInfo* itemInfo;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
